package Command.commandInterfacesImpl;

import Command.commons.interfacesImpl.Light;
import Command.commandInterfaces.Command;

/**
 * @Author: pengzx
 * @Description:
 * @Date: 14:50 2017/9/12
 * @Modified by: 1.0
 */
public class LightOnCommand implements Command {
    Light light;

    public LightOnCommand(Light light)
    {
        this.light = light;
    }

    @Override
    public void execute()
    {
        light.on();
    }

    @Override
    public void undo()
    {
        light.off();
    }
}
